package com.cihon.model;


import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class R implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 返回码
	 */
	private int code = BuzCode.SUCCEED.getCode();

	/**
	 * 返回信息
	 */
	private String message = BuzCode.SUCCEED.getMessage();

	/**
	 * 返回数据
	 */
	private Object data;

	public R(int code, String message) {
		this.code = code;
		this.message = message;
	}

}
